<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddPublicDirectToFeishuCallingCardsInvestmentEmployeeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->unsignedTinyInteger('public')->default(0)->comment('是否分配公海线索');
            $table->unsignedTinyInteger('direct')->default(0)->comment('自己来源线索是否分配给自己');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->dropColumn(['public', 'direct']);
        });
    }
}
